package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEacherTest {
    public static void main(String[] args) {
        Teacher t=new Teacher();
        t.setName("老郭");
        t.setAge(54);
//        t.name="老郭";
//        t.age=-23;
        t.selfIntro();
        int n=t.getAge();
        if(n>50){
            System.out.println("老了");
        }else{
            System.out.println("很年轻");
        }
        System.out.println(">>>>>>>>>>>>>>>>>>");
        Teacher t2=new Teacher("小黄",15);
        t2.selfIntro();

        //>>>System ttt=new System();
    }
}
